package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.MemberEntity;
import cn.meye11.crm.domain.query.MemberQuery;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * 会员信息表(Member)表数据库访问层
 * 
 * @author makejava
 * @since 2023-11-15 11:43:15
 */
@Repository
public interface MemberMapper extends Mapper<MemberEntity> {

    @SelectProvider(type = MemberProvider.class, method = "list")
    List<MemberEntity> list(MemberQuery query);
    
    @SelectProvider(type = MemberProvider.class, method = "count")
    Long count(MemberQuery query);
}
